<?php
// +----------------------------------------------------------------------
// | CatchAdmin [Just Like ～ ]
// +----------------------------------------------------------------------
// | Copyright (c) 2017~{$year} http://catchadmin.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt )
// +----------------------------------------------------------------------
// | Author: JaguarJack [ njphper@gmail.com ]
// +----------------------------------------------------------------------
// you should use `$router`
/* @var think\Route $router */
$router->group('storehouse', function () use($router) {
    //入库列表
    $router->post('warehousing/index', '\\catchAdmin\\storehouse\\controller\\Warehousing@index');
    //入库添加
    $router->post('warehousing/create', '\\catchAdmin\\storehouse\\controller\\Warehousing@create');
    //入库编辑
    $router->post('warehousing/update', '\\catchAdmin\\storehouse\\controller\\Warehousing@update');
    //入库删除
    $router->post('warehousing/delete', '\\catchAdmin\\storehouse\\controller\\Warehousing@delete');
    //入库明细列表
    $router->post('warehousingSon/index', '\\catchAdmin\\storehouse\\controller\\WarehousingSon@index');
    //入库明细添加
    $router->post('warehousingSon/create', '\\catchAdmin\\storehouse\\controller\\WarehousingSon@create');
    //入库明细编辑
    $router->post('warehousingSon/update', '\\catchAdmin\\storehouse\\controller\\WarehousingSon@update');
    //入库明细删除
    $router->post('warehousingSon/delete', '\\catchAdmin\\storehouse\\controller\\WarehousingSon@delete');
    // 打印
    $router->post('warehousingSon/print', 'catchAdmin\storehouse\controller\WarehousingSon@print');


    //托盘列表
    $router->post('tray/index', '\\catchAdmin\\storehouse\\controller\\Tray@index');
    //托盘添加
    $router->post('tray/create', '\\catchAdmin\\storehouse\\controller\\Tray@create');
    //托盘编辑
    $router->post('tray/update', '\\catchAdmin\\storehouse\\controller\\Tray@update');
    //托盘删除
    $router->post('tray/delete', '\\catchAdmin\\storehouse\\controller\\Tray@delete');



    // 出库单列表
    $router->post('warehouseOut/index', 'catchAdmin\storehouse\controller\WarehouseOut@index');
    // 出库单创建
    $router->post('warehouseOut/create', 'catchAdmin\storehouse\controller\WarehouseOut@create');
    // 出库单修改
    $router->post('warehouseOut/update', 'catchAdmin\storehouse\controller\WarehouseOut@update');
    // 出库单删除
    $router->post('warehouseOut/delete', 'catchAdmin\storehouse\controller\WarehouseOut@delete');
    // 出库单商品列表
    $router->post('warehouseOutSon/index', 'catchAdmin\storehouse\controller\WarehouseOutSon@index');
    // 出库单商品创建
    $router->post('warehouseOutSon/create', 'catchAdmin\storehouse\controller\WarehouseOutSon@create');
    // 出库单商品修改
    $router->post('warehouseOutSon/update', 'catchAdmin\storehouse\controller\WarehouseOutSon@update');
    // 出库单商品删除
    $router->post('warehouseOutSon/delete', 'catchAdmin\storehouse\controller\WarehouseOutSon@delete');
    // 出库明细列表
    $router->post('warehouseOutSon/list', 'catchAdmin\storehouse\controller\WarehouseOutSon@list');
    // 一键出库
    $router->post('warehouseOutSon/wholeOut', 'catchAdmin\storehouse\controller\WarehouseOutSon@wholeOut');

    // 项目委托人列表
    $router->post('project/index', 'catchAdmin\storehouse\controller\Project@index');
    // 项目委托人创建
    $router->post('project/create', 'catchAdmin\storehouse\controller\Project@create');
    // 项目委托人修改
    $router->post('project/update', 'catchAdmin\storehouse\controller\Project@update');
    // 项目委托人删除
    $router->post('project/delete', 'catchAdmin\storehouse\controller\Project@delete');
    // locking 路由
    $router->post('locking/index', 'catchAdmin\\stock\\controller\\Locking@index');
    $router->post('locking/delete', 'catchAdmin\\stock\\controller\\Locking@delete');

    //库存操作信息记录
    $router->get('inventoryOperationRecord/index', 'catchAdmin\\storehouse\\controller\\InventoryOperationRecord@index');
 })->middleware('auth');
$router->post('stock/locking/delAll', 'catchAdmin\\stock\\controller\\Locking@delAll');
// 项目委托方二级列表
$router->post('storehouse/project/getProject', 'catchAdmin\storehouse\controller\Project@getProject');
// 项目委托方一级列表
$router->post('storehouse/project/project', 'catchAdmin\storehouse\controller\Project@project');
//商品总数量剩余数
$router->post('storehouse/warehousingSon/goodsNumber', '\\catchAdmin\\storehouse\\controller\\WarehousingSon@goodsNumber');
//剩余商品入库数量
$router->post('storehouse/tray/surplus', '\\catchAdmin\\storehouse\\controller\\Tray@surplus');
$router->post('storehouse/tray/createAdd', '\\catchAdmin\\storehouse\\controller\\Tray@createAdd');
$router->post('storehouse/warehouseOutSon/getPalletNo', '\\catchAdmin\\storehouse\\controller\\WarehouseOutSon@getPalletNo');

$router->post('storehouse/warehousingSon/createAdd', 'catchAdmin\storehouse\controller\WarehousingSon@createAdd');
$router->post('storehouse/warehousingSon/getCreate', 'catchAdmin\storehouse\controller\WarehousingSon@getCreate');
$router->post('storehouse/warehousingSon/createEdit', 'catchAdmin\storehouse\controller\WarehousingSon@createEdit');
$router->post('storehouse/warehousingSon/createDel', 'catchAdmin\storehouse\controller\WarehousingSon@createDel');
$router->post('storehouse/warehousingSon/goStockAll', 'catchAdmin\storehouse\controller\WarehousingSon@goStockAll');
$router->post('storehouse/warehousingSon/configDel', 'catchAdmin\storehouse\controller\WarehousingSon@configDel');
$router->post('storehouse/warehousingSon/goStock', 'catchAdmin\storehouse\controller\WarehousingSon@goStock');
$router->post('storehouse/warehouseOutSon/fastOut', 'catchAdmin\storehouse\controller\WarehouseOutSon@fastOut');

$router->post('storehouse/warehousing/print', 'catchAdmin\storehouse\controller\Warehousing@print');
$router->post('storehouse/warehousing/test', 'catchAdmin\storehouse\controller\Warehousing@test');

//无需权限--获取单个商品-托盘信息-不分页
$router->post('storehouse/tray/conversionList', '\\catchAdmin\\storehouse\\controller\\Tray@conversionList');
//项目选择--库位
$router->get('storehouse/project/warehouse/[:id]','\\catchAdmin\\storehouse\\controller\\Project@warehouse');
$router->get('storehouse/warehousingSon/projectWarehouseConfig/:id','\\catchAdmin\\storehouse\\controller\\WarehousingSon@projectWarehouseConfig');
//项目-客户
$router->get('storehouse/project/provider','\\catchAdmin\\storehouse\\controller\\Project@provider');
//首页 入库库订单 后期加权限
$router->get('storehouse/project/allOrder','\\catchAdmin\\storehouse\\controller\\Project@allOrder');
$router->post('warehousingSon/createPalletNo', '\\catchAdmin\\storehouse\\controller\\WarehousingSon@createPalletNo');
$router->post('warehousingSon/getPalletNoList', '\\catchAdmin\\storehouse\\controller\\WarehousingSon@getPalletNoList');
$router->post('warehousingSon/delPalletNo', '\\catchAdmin\\storehouse\\controller\\WarehousingSon@delPalletNo');

//出库  下载excel 后期加权限
$router->get('storehouse/warehouseOut/exportExcel/:id', '\\catchAdmin\\storehouse\\controller\\WarehouseOut@exportExcel');
$router->get('storehouse/warehouseOut/exportPdf/:id', '\\catchAdmin\\storehouse\\controller\\WarehouseOut@exportPDF');
$router->get('storehouse/warehouseOut/exportPdf1/:id', '\\catchAdmin\\storehouse\\controller\\WarehouseOut@exportPDF1');
$router->get('storehouse/warehouseOut/exportData/:id', '\\catchAdmin\\storehouse\\controller\\WarehouseOut@exportData');

$router->get('storehouse/project/get_settlement/:project_client_id', '\\catchAdmin\\storehouse\\controller\\Project@get_settlement');
$router->get('storehouse/warehousing/getAllWarehousingNo', '\\catchAdmin\\storehouse\\controller\\Warehousing@getAllWarehousingNo');
//出库表单
$router->post('storehouse/warehouseOut/out_detail', '\\catchAdmin\\storehouse\\controller\\WarehouseOut@out_detail');
$router->post('storehouse/warehousing/in_detail', '\\catchAdmin\\storehouse\\controller\\Warehousing@in_detail');
$router->get('storehouse/warehousingSon/get_config_level3/:id', '\\catchAdmin\\storehouse\\controller\\WarehousingSon@getConfigLevel3');

$router->get('storehouse/warehousing/projectWarehouseConfig/:project_client_id','\\catchAdmin\\storehouse\\controller\\Warehousing@projectWarehouseConfig');
$router->post('storehouse/warehouseOut/exportEdiWarehouseOut', '\\catchAdmin\\storehouse\\controller\\WarehouseOut@exportEdiWarehouseOut');
$router->get('storehouse/warehouseOut/exportDeliver/:id', '\\catchAdmin\\storehouse\\controller\\WarehouseOut@exportDeliver');
$router->post('storehouse/warehouseOut/exportWarehouseOut', '\\catchAdmin\\storehouse\\controller\\WarehouseOut@exportOrders');
$router->post('storehouse/warehouseOut/importWarehouseOut', '\\catchAdmin\\storehouse\\controller\\WarehouseOut@importOrders');
// 库存操作记录导出
$router->get('storehouse/inventoryOperationRecord/export', '\\catchAdmin\\storehouse\\controller\\InventoryOperationRecord@export');

$router->get('storehouse/warehouseOut/downloadFile', '\\catchAdmin\\storehouse\\controller\\WarehouseOut@downloadFile');
